/*
 * 中北大学软件学院版权所有2020-2025
 */
package nuc.lp.uolab.competition.service;

import java.util.List;

import nuc.lp.uolab.competition.dao.CompetitionDao;
import nuc.lp.uolab.competition.dao.CompetitionDaoImpl;
import nuc.lp.uolab.competition.vo.Competition;

/**
 *
 * @author liupeng
 * @version 1.0
 */
public class CompetitionServiceImpl implements CompetitionService{

	CompetitionDao competitionDao = new CompetitionDaoImpl();
	@Override
	public boolean addCompetition(Competition competition) {
		return competitionDao.insertCompetition(competition);
	}

	@Override
	public boolean modifyCompetition(Competition competition) {
		return competitionDao.updateCompetition(competition);
	}

	@Override
	public List<Competition> findCompetition(String year) {
		return competitionDao.selectCompetition(year);
	}

}
